package com.yonyou.pmclouds.plan.plandriven.entity;

import com.yonyou.pmclouds.plan.entity.ProjectPlanVO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author th
 * @date 2019/11/22 16:37
 */
@Data
public class PlanMessageVOForNCC implements Serializable {

    private String relatedBillType;
    private String pkProject;
    private String projectName;
    private String projectCode;
    private String pkDependPlan;
    private String dependPlanName;
    private String pkPlan;
    private String planName;
    private Date planEndDate;
    private String manager;
    private String managerName;

    public static PlanMessageVOForNCC convertFromProjectPlan(ProjectPlanVO planVO) {
        PlanMessageVOForNCC messageVO = new PlanMessageVOForNCC();
        messageVO.setPkProject(planVO.getPkProject());
        messageVO.setPkDependPlan(planVO.getDependPlan());
        messageVO.setPlanEndDate(planVO.getExpeEndDate());
        messageVO.setPkPlan(planVO.getPkPlan());
        messageVO.setRelatedBillType(planVO.getRelatedBillType());

        return messageVO;
    }
}
